package org.lalib.controller.form;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.SessionScoped;

import org.lalib.acquire.IControllerForm;
import org.lalib.entity.object.EUserGroup;
import org.springframework.stereotype.Controller;

@SessionScoped
@Controller("cUserGroupForm")
public class CUserGroupForm implements IControllerForm {

	private static final long serialVersionUID = 1L;
	private List<EUserGroup> userGroupList;
	private EUserGroup userGroup;
	private boolean enableUpdate = false;

	public CUserGroupForm() {
		userGroup = new EUserGroup();
		userGroupList = new ArrayList<EUserGroup>();
	}

	public List<EUserGroup> getUserGroupList() {
		return userGroupList;
	}

	public void setUserGroupList(List<EUserGroup> userGroupList) {
		this.userGroupList = userGroupList;
	}

	public EUserGroup getUserGroup() {
		return userGroup;
	}

	public void setUserGroup(EUserGroup userGroup) {
		this.userGroup = userGroup;
	}

	public boolean isEnableUpdate() {
		return enableUpdate;
	}

	public void setEnableUpdate(boolean enableUpdate) {
		this.enableUpdate = enableUpdate;
	}
}